@(name: String, value: Option[java.util.Date])
@import gitbucket.core.view.helpers
<div id="@name" class="input-group date" data-date="@value.map(helpers.date)" style="width: 180px;">
  <input class="form-control" name="@name" type="text" value="@value.map(helpers.date)"/>
  <span class="input-group-addon"><i class="octicon octicon-calendar"></i></span>
</div>
<script>
$(function(){
  $('#@name').datetimepicker({
    format: 'YYYY-MM-DD'
  });
});
</script>
